package com.dubbo.service;

import java.util.HashMap;
import java.util.Map;

public class B {
    private static Map<String,A<Object>> map =new HashMap<String,A<Object>>();

    public static void main(String[] args) {
//        map.put("1111",()->a());
        map.put("2",(int a) -> {
            System.out.println("ceshi");
            return "ceshi11111"+a;
        });
//        System.out.println(map.get("1111").getObject());
        System.out.println(map.get("2").getObject(50000));
    }

//    private static Object a() {
//        System.out.println("大无语");
//        return  "2222";
//    }
}
